package com.hmall.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "user-service",path = "/users")
public interface UserClient {

    @PostMapping("/money/deduct")
    void deductMoney(@RequestParam("pw") String pw, @RequestParam("amount")Integer amount);
}
